package cn.bone.alibabacloud.controller;

import cn.bone.alibabacloud.model.Order;
import cn.bone.alibabacloud.service.IOrderService;
import cn.bone.springcloud.base.bean.CommonResult;
import cn.bone.springcloud.base.bean.Ref;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderController {

    @Resource
    private IOrderService orderService;

    @GetMapping("/order/create")
    public CommonResult create(Order order){
        orderService.create(order);
        return Ref.ok();
    }
}
